import scrapy
from spider.book import Book




class BookSpider(scrapy.Spider):
    name = 'books'
    start_urls = ['https://www.ciweimao.com/book/100100123']

    def parse(self, response):
        book = Book()
        book.parseResponse(response)
        book.printProperties()
        book.insertBook()
